export default {
  // 开启命名空间
  namespaced: true,

  // 数据
  state: () => ({
    historyword: uni.getStorageSync('historyword') || [],
   
  }),

  // 方法
  mutations: {
    updatehistoryword(state, historyword) {
      state.historyword = historyword
      this.commit('m_word/savehistorywordToStorage')
    },
    savehistorywordToStorage(state) {
      uni.setStorageSync('historyword', state.historyword)
    },
    
  },
}